package com.yc.spring.aop;

import com.yc.spring.bbs.bean.User;
import com.yc.spring.bbs.dao.UserDaoImpl;
import org.springframework.stereotype.Repository;

// 静态代理方式二: 基于继承方式
@Repository
public class UserDaoProxy2 extends UserDaoImpl {

    @Override
    public void insert(User user) {
        System.out.println("========== 静态代理:前置增强 insert ================");
        super.insert(user);
        System.out.println("========== 静态代理:后置增强 insert ================");
    }
}
